﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_borrar : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        string fecha1 = "";
        string fecha2 = ""; 
        if (text1.Text != "")
        {
            int orderid = int.Parse(text1.Text);
            int res = DB.deleteCompsDoc(orderid);
        }
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        int orderid = 30000;
        if (text1.Text != "")
        {
            orderid = int.Parse(text1.Text);
            int res = DB.deleteSubsDoc(orderid);
        }
    }
}